package com.mac.hosp_pre.user.enums;

import lombok.Getter;

@Getter
public enum UserResultCodeEnum {

    CODE_ERROR(610, "验证码错误"),
    LOGIN_DISABLED_ERROR(612, "用户已被禁用"),
    REGISTER_MOBLE_ERROR(613, "手机号已被使用"),

    URL_ENCODE_ERROR( 616, "URL编码失败"),
    ILLEGAL_CALLBACK_REQUEST_ERROR( 617, "非法回调请求"),
    FETCH_ACCESSTOKEN_FAILD( 618, "获取accessToken失败"),
    FETCH_USERINFO_ERROR( 619, "获取用户信息失败"),

    PAY_RUN(620, "支付中"),
    CANCEL_ORDER_FAIL(625, "取消订单失败"),
    CANCEL_ORDER_NO(625, "不能取消预约"),

    HOSCODE_EXIST(630, "医院编号已经存在"),
    NUMBER_NO(640, "可预约号不足"),
    TIME_NO(650, "当前时间不可以预约"),

    SIGN_ERROR(660, "签名错误"),
    HOSPITAL_OPEN(661, "医院未开通，暂时不能访问"),
    HOSPITAL_LOCK(662, "医院被锁定，暂时不能访问"),
    ;

    /**
     * 错误码
     */
    private final Integer code;
    /**
     * 错误提示
     */
    private final String msg;

    UserResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }

}
